/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrgs.inf.prav.interop.jsf;

import br.ufrgs.inf.prav.interop.jsf.components.VarOutComponent;
import javax.faces.component.UIComponent;
import javax.faces.webapp.UIComponentELTag;

/**
 *
 * @author Fernando
 */
public class VarOutTag extends UIComponentELTag{

    private String name, value;

    public VarOutTag(){
        
    }

     @Override
    public String getComponentType() {
        return VarOutComponent.COMPONENT_TYPE;
    }

    @Override
    public String getRendererType() {
        return null;
    }

    @Override
    protected void setProperties(UIComponent component) {
        /* you have to call the super class */
        super.setProperties(component);
        VarOutComponent varOut = (VarOutComponent)component;
        varOut.setName(name);
        varOut.setValue(value);
//        NavBarComponent navBar = (NavBarComponent) component;
    }


    // <editor-fold defaultstate="collapsed" desc="Getters and Setters">
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    // </editor-fold>

}
